#ifndef SETTING_TYPES_H
#define SETTING_TYPES_H

#include <QtCore/QHash>
#include <QtCore/QMetaType>
#include <QtCore/QString>

namespace core
{

struct Range
{
    Range() : Start(0), Stop(0), Value(Start)
    {
    }

    Range(int start, int stop)
    {
        Start = start;
        Stop = stop;
        Value = Start;
    }

    int Start;
    int Stop;
    int Value;
};

class SettingTypes
{
public:
    static void init();
    static int typeId(const QString& name);

private:
    static QHash<QString, int> types;
};

} // namespace core

Q_DECLARE_METATYPE(core::Range)

#endif
